import { request } from '@/utils/request.js'

export default {
    /**
     * 获取列表
     * @returns
     */
    list (params = {}) {
        return request({
            url: 'prm/activity/list',
            method: 'get',
            params
        })
    },
    allList(params = {}) {
        return request({
            url: 'prm/activity/allList',
            method: 'get',
            params
        })
    },
    add (params = {}) {
        return request({
            url: 'prm/activity/add',
            method: 'post',
            data:params
        })
    },
    update (id,params = {}) {
        return request({
            url: 'prm/activity/update',
            method: 'post',
            data:params
        })
    },
    delete (params = {}) {
        return request({
            url: 'prm/activity/delete',
            method: 'post',
            data:params
        })
    },
    updateByField (params = {}) {
        return request({
            url: 'prm/activity/updateByField',
            method: 'post',
            data:params
        })
    },
    lcList (params = {}) {
        return request({
            url: 'prm/activity/getLcList',
            method: 'get',
            params
        })
    },
    lcAdd (params = {}) {
        return request({
            url: 'prm/activity/lcAdd',
            method: 'get',
            params
        })
    },
    lcEdit (params = {}) {
        return request({
            url: 'prm/activity/lcEdit',
            method: 'post',
            data:params
        })
    },
    lcDelete (params = {}) {
        return request({
            url: 'prm/activity/lcDelete',
            method: 'post',
            data:params
        })
    },

    actFormList (params = {}) {
        return request({
            url: 'prm/activity/getActFormList',
            method: 'get',
            params
        })
    },
    updateFormByField(params = {}) {
        return request({
            url: 'prm/activity/updateFormByField',
            method: 'post',
            data:params
        })
    },
    actFormAdd (params = {}) {
        return request({
            url: 'prm/activity_form/save',
            method: 'post',
            params
        })
    },

    actFormEdit (id,params = {}) {
        params.id = id;
        return request({
            url: 'prm/activity_form/update',
            method: 'post',
            params
        })
    },

    actFormDel (params = {}) {
        return request({
            url: 'prm/activity_form/delete',
            method: 'post',
            params
        })
    },
}
